#define _CRT_SECURE_NO_WARNINGS 1
#include"SList.h"
void SList1(SLTNode* phead)
{
	SListPushBack(&phead, 1);
	SListPushBack(&phead, 2);
	SListPushBack(&phead, 3);
	SListPushBack(&phead, 2);
	SListPushBack(&phead, 4);
	SLTNode* p = SListFind(phead, 3);
	if (p != NULL)
	{
		SListErase1(&phead, p);
	}
}

void SList2(SLTNode* phead)
{
	SListPushFront(&phead, 1);
	SListPushFront(&phead, 2);
	SListPushFront(&phead, 3);
	SListPushFront(&phead, 2);
	SListPushFront(&phead, 4);
	SListPopFront(&phead);
	SListPopFront(&phead);
}


int main()
{
	SLTNode* plist = NULL;
	SList1(plist);
	SListDestory(&plist);
	return 0;
}